package com.chengduservice.common;

/**
 * create by yongli on 2021-12-19 10:03
 * 分页查询参数，泛型类型
 * 从别的工程借鉴
 */

public class QueryPage<T> {
    private long current;
    private long size;
    private T query;

    public QueryPage() {
    }

    public QueryPage(long current, long size) {
        this.current = current;
        this.size = size;
    }

    public QueryPage(long current, long size, T query) {
        this.current = current;
        this.size = size;
        this.query = query;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public T getQuery() {
        return query;
    }

    public void setQuery(T query) {
        this.query = query;
    }
}
